﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.Graphics;

namespace bomberbide
{
    class Skull:powerup
    {
        public Skull(ContentManager Content)
        {
            this.Texture = Content.Load<Texture2D>("sprite/powerups/skull");
        }

        public override void Modif(bomber Bomber, GameTime gameTime)
        {
            buff prout = new buff(gameTime, Bomber.Content);
            int caca = Bomber.Randomer.Next(1, 7);
            switch (caca)
            {
                case 1:
                    prout = new fullbombe(gameTime, Bomber.Content);
                    break;
                case 2:
                    prout = new invisible(gameTime, Bomber.Content);
                    break;
                case 3:
                    prout = new minibombe(gameTime, Bomber.Content);
                    break;
                case 4:
                    prout = new nobombe(gameTime, Bomber.Content);
                    break;
                case 5:
                    prout = new randombombe(gameTime, Bomber.Content);
                    break;
                case 6:
                    prout = new slow(gameTime, Bomber.Content);
                    break;
                case 7:
                    prout = new sprint(gameTime, Bomber.Content);
                    break;
                default:
                    break;
            }
            Bomber.Buffs.Add(prout);

            base.Modif(Bomber, gameTime);
        }
    }
}
